package com.yjs.app.trade.core.base.mybatis.dbutil;

import com.alibaba.druid.pool.DruidDataSource;
import com.yjs.app.trade.core.util.DESUtils;
import com.yjs.app.trade.core.util.PropertiesUtils;

public class InitDruidDataSoure extends DruidDataSource {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2849172173553490673L;

	private String app_Key = PropertiesUtils.getProperty("jdbc.des.key"); 
	
	@Override
	public void setPassword(String password) {
		password = DESUtils.getDecryptStr(password, app_Key);
		super.setPassword(password);
	}
}
